package com.kk.xhr.model.service;

import com.kk.xhr.common.pojo.BinaryEnum;
import com.kk.xhr.model.dto.PositionDTO;

import java.util.List;
import java.util.Optional;

/**
 * 职位服务接口
 *
 * @author kkmystery
 * @version 1.0 2021/3/4
 * @since 1.0.0
 */
public interface IPositionService {

    List<PositionDTO> query();

    Optional<PositionDTO> queryById(Long id);

    boolean add(PositionDTO dto);

    boolean modify(PositionDTO dto);

    boolean modifyStatus(Long id, BinaryEnum status);

    boolean existName(String name);
}
